import Vue from 'vue'
import Vuex from 'vuex'
// 注册Vuex
Vue.use(Vuex)

// 引入模块
import home from './home'
import search from './search'
import detail from './detail'
import shopCart from './shopCart'
import loginAndRegister from './loginAndRegister'
import trade from './trade'
// 对外暴露
export default new Vuex.Store({
  // 模块化
  modules: {
    home,
    search,
    detail,
    shopCart,
    loginAndRegister,
    trade
  }
})